@import "../css/default.scss";

.main-header-wrap {
  width: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;

  .header-wrap {
    width: 1226px;
    min-width: 1226px;
    // padding: 0 1rem;
    position: relative;

    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 6rem;

    .header-wrap-left {
      padding: 1rem;

      .site-icon {
        display: block;
        height: 5rem;
        width: 5rem;

        object-fit: cover;
        img {
          width: 100%;
          height: 100%;
        }
      }
    }

    .header-wrap-center {
      position: relative;
      display: flex;
      align-items: center;

      white-space: nowrap;

      height: 100%;
      .sg-dropdown-item {
        height: 100%;
        vertical-align: middle;

        a {
          display: flex;
          align-items: center;
          box-sizing: border-box;
          height: 100%;
          padding: 1rem;
        }
      }
    }

    .header-wrap-right {
      .search-wrap {
        display: flex;
        align-items: center;

        .search-input-wrap {
          input {
            box-sizing: border-box;

            padding: 0.55rem 0.5rem;
            border: 1px solid #ccc;
            margin: 0;
          }
        }

        .search-icon {
          box-sizing: border-box;

          padding: 0.5rem;
          margin: 0;
          border: 1px solid #ccc;
        }
      }
    }

    .dropdown-board {
      z-index: 999;
      background-color: white;
      position: absolute;
      left: 0;
      top: 100%;
      width: 100%;
      height: 0;

      display: flex;
      align-items: center;
      justify-content: space-evenly;

      overflow: hidden;

      // box-shadow: 0 5px 5px 3px rgba(0, 0, 0, 0.1);

      transition: height 0.3s;

      &.open {
        height: 15rem;
      }

      .sg-dropdown-item {
        text-align: center;
        .item-img {
          @include img-item(10rem);
        }
        .item-price {
          color: $orange-color;
        }
      }
    }
  }
}
